// 获取管理用户列表的参数类型
export interface GetUserListParams {
  page: number;
  limit: number;
  username: string;
}
// 获取管理用户列表的返回值类型
export interface GetUserListResponse {
  total: number;
  items: UserList;
}
export type UserList = UserItem[];
export interface UserItem {
  id: string;
  gmtCreate: string;
  gmtModified: string;
  username: string;
  nickName: string;
  roleName: string;
}

// 添加管理用户参数类型
export interface AddUserParams {
  id?: string;
  nickName: string;
  password: string;
  username: string;
}
// 修改管理用户参数类型
export interface UpdateUserParams {
  nickName: string;
  password: string;
  username: string;
  id: string;
}
// 获取角色数据
export interface GetUserRoleListResponse {
  assignRoles: RolesList;
  allRolesList: RolesList;
}
export type RolesList = RolesItem[];
export interface RolesItem {
  id: string;
  gmtCreate: string;
  gmtModified: string;
  roleName: string;
}
